package cn.mhome.merchant.dao.jpa.system;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.mhome.merchant.dao.common.po.SysUser;

public interface SysUserDao extends JpaRepository<SysUser,Long>{

	@Query("FROM SysUser WHERE username=:username and password=:password")
	SysUser findByNamePwd(@Param("username")String username,@Param("password") String password);
}
